<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/6 0006
 * Time: 9:17
 */
//新版
Route::get('itemsNew', [
    'as' => 'items.indexNew', 'uses' => 'ItemsController@indexNew'
]);


Route::get('items', [
    'as' => 'items.index', 'uses' => 'ItemsController@index'
]);

Route::match(['get', 'post'],'items/create', [
    'as' => 'items.create', 'uses' => 'ItemsController@create'
]);

Route::get('items/delete/{id}', [
    'as' => 'items.delete', 'uses' => 'ItemsController@delete'
]);
Route::get('items/show/{id}', [
    'as' => 'items.show', 'uses' => 'ItemsController@show'
]);
Route::match(['get', 'post'],'items/edit/{id}', [
    'as' => 'items.edit', 'uses' => 'ItemsController@edit'
]);
Route::get('items/task/{id}', [
    'as' => 'items.task', 'uses' => 'ItemsController@task'
]);
Route::post('items/task_next', [
    'as' => 'items.task_next', 'uses' => 'ItemsController@task_next'
]);
Route::post('items/task_save', [
    'as' => 'items.task_save', 'uses' => 'ItemsController@task_save'
]);
Route::post('items/task_delete', [
    'as' => 'items.task_delete', 'uses' => 'ItemsController@task_delete'
]);
Route::post('items/check/{id}', [
    'as' => 'items.check', 'uses' => 'ItemsController@check'
]);
Route::post('items/child_task', [
    'as' => 'items.child_task', 'uses' => 'ItemsController@child_task'
]);
// add by tony 20160811
Route::post('items/edittask', [
    'as' => 'items.taskedit', 'uses' => 'ItemsController@task_edit'
]);

